package org.tinygroup.channel.protocol.config;

import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("protocol-lisenter")
public class ProtocolListenerConfig {
	@XStreamAsAttribute
	private String id;
	@XStreamAsAttribute
	private String bean;
	@XStreamImplicit
	private List<ParamConfig> params;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getBean() {
		return bean;
	}
	public void setBean(String bean) {
		this.bean = bean;
	}
	public List<ParamConfig> getParams() {
		if(params==null){
			params = new ArrayList<ParamConfig>();
		}
		return params;
	}
	public void setParams(List<ParamConfig> params) {
		this.params = params;
	}
	
}
